package com.lineengine.lineengine.result;


import com.lineengine.lineengine.common.ErrorType;
import com.lineengine.lineengine.context.IContext;


/**
 * <p>
 * 执行结果
 * </p>
 *
 * @author wenrong.yu
 * @since 2020-11-07 21:20
 */
public interface IResult<T extends IContext<T>> {
    /**
     * 是否成功
     *
     * @return true/false
     */
    boolean isSuccess();

    /**
     * get code
     *
     * @return code
     */
    String getCode();

    /**
     * get message
     *
     * @return message
     */
    String getMessage();

    /**
     * getErrorType
     *
     * @return ErrorType
     */
    ErrorType getErrorType();
}
